package com.gitee.ykr.lightweight.rpc.protocol.server;

import com.gitee.ykr.lightweight.rpc.common.entity.AppEntity;

/**
 * @author YKR
 * @Describe
 * @date 2021/8/23
 */
public interface ServerExcutor {

    /**
     * 启动netty server
     */
    void start(AppEntity appEntity) throws Exception;

    /**
     * 是否启动
     *
     * @return
     */
    boolean started(AppEntity appEntity) throws Exception;

}
